﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TaskX
{
    public class TimedTask : Task
    {
        private Timing startTime;
        private Timing endTime;

        public Timing GetStartTime()
        {
            return startTime;
        }

        public void DetStartTime(Timing start)
        {
            startTime = start;
        }

        public Timing GetEndTime()
        {
            return endTime;
        }

        public void SetEndTime(Timing end)
        {
            endTime = end;
        }

        public TimedTask()
            : base()
        {
            startTime = new Timing();
            endTime = new Timing();

        }

        public TimedTask(string tasks, Timing start, Timing end)
            : base(tasks)
        {
            startTime = start;
            endTime = end;
        }
    }
}
